<div class="section">
     <?if(Yii::app()->user->hasFlash('opersuc')):?>
    <div class="messages green" onclick="$(this).fadeOut();" style="cursor:pointer;float:left;clear: both;padding-right: 10px;"><span></span><?=Yii::app()->user->getFlash('opersuc');?> </div>
    <?endif?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Редактирование пункта меню')?></h2>
				<span class="hide"></span>
			</div>
<div class="content forms">

    <?$form=$this->beginWidget('CActiveForm', array(
        'id'=>'addnews-form',
        'enableAjaxValidation'=>true,
    )); ?>

    <?=$form->errorSummary($model); ?>


					<div class="line" style="border-top-width: 2px; border-top-style: solid; border-top-color: rgb(242, 244, 247); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(242, 244, 247); ">
						<?=$form->label($model,'title'); ?>
                        <?=CHtml::activeTextField($model,'title',array('class'=>'medium')); ?>
					</div>
                    <div class="line" >
    				    <?=$form->label($model,'url'); ?>
                        <?=CHtml::activeTextField($model,'url',array('class'=>'medium')); ?>
    				</div>
                     <div class="line" >
        				    <?=$form->label($model,'type'); ?>
                            <?=CHtml::activeDropDownList($model,'type',array('footer'=>'footer','top'=>'top','left'=>'left')) ?>
        		     </div>





                    <div class="line button">
                                            <? //save this news ?>
                                            <button type="submit" class="green medium"><span><?=Yii::t('app','Сохранить');?></span></button>
                                            <button type="submit" onclick="window.location.replace('<?=$this->createUrl("menu/")?>');return false; " class="blue medium"><span>Отмена</span></button>
                                            
                                        </div>
<?$this->endWidget(); ?>

       </div>
                       

			</div>

	